package com.cloud.shopping.page.feign;

import com.cloud.shopping.tool.RespResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author John.Zhang
 * @version Id: SeckillPageFeign, v 0.1 2021/1/8 11:52 ZhiYong Exp $
 */
@FeignClient(value = "shopping-web-page")
public interface SeckillPageFeign {

    /**
     * 生成秒杀商品详情页
     *
     * @param id id
     * @return RespResult
     * @throws Exception Exception
     */
    @GetMapping(value = "/page/seckill/goods/{id}")
    RespResult page(@PathVariable("id") String id) throws Exception;

    /**
     * 删除指定活动的页面
     *
     * @param acid acid
     * @return RespResult
     */
    @DeleteMapping(value = "/page/seckill/delete/{acid}")
    RespResult deleteByAct(@PathVariable("acid") String acid);


}
